Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Ledger sing message support #1

Open
wants to merge 29 commits into
base: dev
Choose a base branch
from

Conversation

JordiParraCrespo
Copy link

@JordiParraCrespo JordiParraCrespo commented Dec 10, 2024

Ledger sing message support

This PR adds support for message signing using Ledger hardware wallet.

Key Changes:

  • Added signMessage and signDelegateAction methods to the ledger-client.
  • Optimized CHUNK_SIZE to reduce the number of communication calls to the Ledger device.
  • Integrated signMessage into the ledger class.
  • Added unit tests to cover the new message signing functionality.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Type of change.

  • FIX - a PR of this type patches a bug.
  • FEATURE - a PR of this type introduces a new feature.
  • BUILD - a PR of this type introduces build changes.
  • CI - a PR of this type introduces CI changes.
  • DOCS - a PR of this type introduces DOCS improvement.
  • STYLE - a PR of this type introduces style changes.
  • REFACTOR - a PR of this type introduces refactoring.
  • PERFORMANCE - a PR of this type introduces performance changes.
  • TEST - a PR of this type adds more tests.
  • CHORE - a PR introduces other changes than the specified above.

Copy link

@AgustinMJ AgustinMJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!!!🐐

packages/ledger/src/lib/ledger-client.spec.ts Show resolved Hide resolved
packages/ledger/src/lib/ledger.spec.ts Show resolved Hide resolved
packages/ledger/src/lib/ledger.ts Show resolved Hide resolved
gtsonevv and others added 6 commits December 13, 2024 15:23
fix: Remove @near-js/ aliases from tsconfig.base.json
…ividual-packages

fix: Fix imports and remove unnecessary peer dependency
…ency

feat: Bump borsh to v1.0.0 and remove the better-sqlite3
v8.9.15 Release (dev → main)
Copy link

socket-security bot commented Dec 19, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@semantic-release/[email protected] filesystem, network 0 67.1 kB semantic-release-bot

View full report↗︎

Elabar and others added 7 commits January 2, 2025 14:38
fix: define range of `near-api-js` versions as peerDependency instead of an exact one
- also added a ping in signIn that should resolve almost immediately to avoid auto login stuck
- this is so our app make sure we are processing the right message
feat: add support for meteor wallet mobile app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants